const express = require("express");
const { db } = require("../utils/db.js");

const router = express.Router();


// 分类查询
router.get("/", async(req, res) => {

    const sql_all = "select * from `city_data`"

    let { err, rows } = await db.async.query(sql_all, [])

    res.send({
        rows
    })

})



module.exports = router;